package com.cyf.pay.wxpay.bean;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author zym
 * @date 2020/6/22 18:22
 */
@XmlRootElement(name = "xml")
public class WxChatUnifiedOrderReq {
    private String appid;       // 应用ID 是
    private String mch_id;      // 商户号 是
    private String sub_appid;  //子商户公众账号ID  否
    private String sub_mch_id; //子商户号    是
    private String device_info; // 设备号 否
    private String nonce_str;   // 随机字符串 是
    private String sign;        // 签名 是
    private String sign_type;   // 签名类型，否 目前支持HMAC-SHA256和MD5，默认为MD5
    private String body;        // 商品描述 是
    private String detail;      // 商品详情 否
    private String attach;      // 附加数据 否
    private String out_trade_no;// 商户订单号 是
    private String fee_type;    // 货币类型 否 默认人民币：CNY
    private Integer total_fee;  // 总金额 是 单位分
    private String spbill_create_ip;// 终端IP 是
    private String time_start;  // 交易起始时间 否
    private String time_expire; // 交易结束时间 否
    private String goods_tag;   // 商品标记 否
    private String notify_url;  // 通知地址 是 取值如下：JSAPI，NATIVE，APP等，
    private String trade_type;  // 交易类型 是 trade_type=NATIVE时（即扫码支付），此参数必传。此参数为二维码中包含的商品ID，商户自行定义。
    private String product_id;  //商品id
    private String limit_pay;   // 指定支付方式 否
    private String openid;      // trade_type=JSAPI时（即公众号支付），此参数必传，此参数为微信用户在商户对应appid下的唯一标识
    private String sub_openid; //用户子标识   否
    private String scene_info;  // 场景信息 该字段用于上报支付的场景信息,针对H5支付有以下三种场景,请根据对应场景上报,H5支付不建议在APP端使用，针对场景1，2请接入APP支付，不然可能会出现兼容性问题


    public WxChatUnifiedOrderReq() {

    }

    public WxChatUnifiedOrderReq(String appid, String mch_id, String notify_url, String trade_type) {
        this.appid = appid;
        this.mch_id = mch_id;
        this.notify_url = notify_url;
        this.trade_type = trade_type;
    }
    public String getSub_appid() {
        return sub_appid;
    }

    public void setSub_appid(String sub_appid) {
        this.sub_appid = sub_appid;
    }

    public String getSub_mch_id() {
        return sub_mch_id;
    }

    public void setSub_mch_id(String sub_mch_id) {
        this.sub_mch_id = sub_mch_id;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getSub_openid() {
        return sub_openid;
    }

    public void setSub_openid(String sub_openid) {
        this.sub_openid = sub_openid;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getDevice_info() {
        return device_info;
    }

    public void setDevice_info(String device_info) {
        this.device_info = device_info;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getSign_type() {
        return sign_type;
    }

    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getFee_type() {
        return fee_type;
    }

    public void setFee_type(String fee_type) {
        this.fee_type = fee_type;
    }

    public Integer getTotal_fee() {
        return total_fee;
    }

    public void setTotal_fee(Integer total_fee) {
        this.total_fee = total_fee;
    }

    public String getSpbill_create_ip() {
        return spbill_create_ip;
    }

    public void setSpbill_create_ip(String spbill_create_ip) {
        this.spbill_create_ip = spbill_create_ip;
    }

    public String getTime_start() {
        return time_start;
    }

    public void setTime_start(String time_start) {
        this.time_start = time_start;
    }

    public String getTime_expire() {
        return time_expire;
    }

    public void setTime_expire(String time_expire) {
        this.time_expire = time_expire;
    }

    public String getGoods_tag() {
        return goods_tag;
    }

    public void setGoods_tag(String goods_tag) {
        this.goods_tag = goods_tag;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public String getTrade_type() {
        return trade_type;
    }

    public void setTrade_type(String trade_type) {
        this.trade_type = trade_type;
    }

    public String getLimit_pay() {
        return limit_pay;
    }

    public void setLimit_pay(String limit_pay) {
        this.limit_pay = limit_pay;
    }

    public String getScene_info() {
        return scene_info;
    }

    public void setScene_info(String scene_info) {
        this.scene_info = scene_info;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
}
